<div style="font-size:10pt; padding: 10px;" class="color">
    <a href="{url link='public.groups'}">{language text="groups"}</a>
    &gt;&gt;
    <a href="{url link='public.groups.view' id=$aGroupData.id}">{$aGroupData.title|escape}</a>
    &gt;&gt;
    {language text="forum_139"}
</div>
<table style="width:100%;" cellpadding="4" cellspacing="5">
<tr>
    <td style="font-size:10pt;vertical-align:top;" class="border2">

        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
            <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{language text="group_forum"}</td>
            </tr>
        </table>
        {if $iCnt != 0}

        <div style="padding:5px;font-size:8pt;">

            <table>
            <tr>
                <td class="mainmenu6" onclick="javascript:window.location.href='{url link='public.groups.forum.topic' id=$aGroupData.id}'" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';">
                <a href="{url link='public.groups.forum.topic' id=$aGroupData.id}">
                {language text="post_topic_143"}
                </a>
                </td>
            </tr>
            </table>

        </div>

        <br />
            <div style="font-size:8pt;">
            {str_replace text="`viewing_ifrom_ito_out_of_icnt_topic`" iFrom="`$iFrom`" iTo="`$iTo`" iCnt="`$iCnt`" }
            {include file="$sRootPath/_blocks/pager_nav_button.html"}
            </div>

            <table style="width:100%;" cellpadding="5" cellspacing="1" class="border2">
            <tr class="forum-1">
                <td style="width:10%;text-align:center;">
                    <img src="design/pic/spacer.gif" alt="" width="40" height="2" />
                </td>
                <td style="width:50%;font-size:8pt;">
                    <span style="vertical-align:middle;"><b>{language text="forum_topics_286"}</b></span>
                </td>
                <td style="width:10%;text-align:center;font-size:8pt;">
                    <span style="vertical-align:middle;"><b>{language text="replies"}</b></span>
                </td>
                <td style="width:10%;text-align:center;font-size:8pt;">
                    <span style="vertical-align:middle;"><b>{language text="views_543"}</b></span>
                </td>
                <td style="width:30%;text-align:center;font-size:8pt;">
                    <span style="vertical-align:middle;"><b>{language text="last_reply"}</b></span>
                </td>
            </tr>

            {foreach from=$aTopics item=aItem}
            <tr class="forum-2">
                <td style="width:10%;text-align:center;" class="forum-3"><a href="{url link='public.user' name=$aItem.user}">{Account::Avatar sUser=$aItem.user iSize=60 class="pic1" onmouseover="showInfo5('`$aItem.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}</a></td>
                <td style="width:50%;font-size:8pt;" class="forum-3">
                <div style="font-size:10pt;"><a href="{url link='public.groups.forum.posts' id=$aItem.id}">{$aItem.title|strip_tags|process_code|default|escape}</a></div>
                <div style="padding:5px;">
                    {language text="posted_by_604"}: <a href="{url link='public.user' name=$aItem.user}">{$aItem.user}</a> on {$aItem.time|date_format:$sMonthDateFormat}
                </div></td>
                <td style="width:10%;text-align:center;font-size:8pt;" class="forum-3">{$aItem.count_replies}</td>
                <td style="width:10%;text-align:center;font-size:8pt;" class="forum-3">{$aItem.views}</td>
                <td style="width:30%;text-align:center;font-size:8pt;" class="forum-3">
                {if $aItem.count_replies}

                    {$aItem.last_time|date_format:$sMonthDateFormatDot}
                    <div>{include file="$sRootPath/_blocks/flag.html" sFlagLocation=$aItem.last_location}
                    <a href="{url link='public.user' name=$aItem.last_user}">{$aItem.last_user}</a>
                    </div>
                    {else}
                        {language text="no_replies"}
                    {/if}
                </td>
            </tr>
            {/foreach}
            <tr class="forum-1">
                <td style="font-size:8pt;" colspan="10">
                    {$iDate|date_format:$sMonthDateFormat}
                </td>
            </tr>
            </table>

            <div style="font-size:8pt;">
            {include file="$sRootPath/_blocks/pager_nav_button.html"}
            {str_replace text="`viewing_ifrom_ito_out_of_icnt_topic`" iFrom="`$iFrom`" iTo="`$iTo`" iCnt="`$iCnt`" }
            </div>
        <br />

        <div style="padding:5px;font-size:8pt;">


            <table>
            <tr>
                <td class="mainmenu6" onclick="javascript:window.location.href='{url link='public.groups.forum.topic' id=$aGroupData.id}'" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';">
                <a href="{url link='public.groups.forum.topic' id=$aGroupData.id}">
                {language text="post_topic_143"}
                </a>
                </td>
            </tr>
            </table>

        </div>

        {else}
            <div class="message_info">
              {language text="there_are_no_topics_yet"}
            </div>
            <a class="link_action" href="{url link='public.groups.forum.topic' id=$aGroupData.id}">[ {language text="post_now"} ]</a>
        {/if}

        </td>
    </tr>
</table>